package cn.domob.android.ads;

import android.content.Context;
import java.util.HashMap;

class z
  implements p.a
{
  private static final String A = "data";
  private static J a = new J(z.class.getSimpleName());
  private static final String c = "click_report";
  private static final String d = "impression_report";
  private static final String e = "v";
  private static final String f = "sv";
  private static final String g = "rt";
  private static final String h = "ua";
  private static final String i = "ipb";
  private static final String j = "idv";
  private static final String k = "ts";
  private static final String l = "rnd";
  private static final String m = "vcode";
  private static final String n = "tr";
  private static final String o = "type";
  private static final String p = "pkg";
  private static final String q = "vc";
  private static final String r = "vn";
  private static final String s = "total";
  private static final String t = "failsafe";
  private static final String u = "frame";
  private static final String v = "sw";
  private static final String w = "sh";
  private static final String x = "so";
  private static final String y = "phase";
  private static final String z = "origin";
  private Context b;

  public z(Context paramContext)
  {
    this.b = paramContext;
  }

  private void a(String paramString1, String paramString2, String paramString3)
  {
    p localp = new p(this.b, paramString1, "", null, "POST", paramString2, 20000, this);
    localp.a(paramString3);
    localp.b();
  }

  private void a(HashMap<String, String> paramHashMap)
  {
    if (paramHashMap == null)
      paramHashMap = new HashMap();
    paramHashMap.put("v", "20120321");
    paramHashMap.put("sv", "030105");
    paramHashMap.put("idv", q.g(this.b));
  }

  private void a(HashMap<String, String> paramHashMap, a parama)
  {
    if (paramHashMap == null)
    {
      a.e("Build Report Common Params Error, paramsMap is null.");
      return;
    }
    String str1 = "";
    if (parama != null)
      if (parama.a == null)
        break label137;
    for (str1 = parama.a; ; str1 = "")
    {
      paramHashMap.put("origin", parama.b);
      String str2 = j.a().a(this.b);
      String str3 = q.f(this.b);
      s.a locala = s.a(str2, str3, str1);
      paramHashMap.put("tr", str1);
      paramHashMap.put("ts", locala.a());
      paramHashMap.put("rnd", locala.b());
      paramHashMap.put("vcode", locala.c());
      paramHashMap.put("ipb", str2);
      paramHashMap.put("ua", str3);
      label137: return;
    }
  }

  public void a(p paramp)
  {
    if (paramp.f() != 200)
      return;
    a.b(this, "Report " + paramp.a() + " finish.");
  }

  protected void a(String paramString, b paramb, HashMap<String, String> paramHashMap)
  {
    a.a("Prepare to report:click_report");
    if (!F.e(paramString))
    {
      if (paramHashMap == null)
        paramHashMap = new HashMap();
      a(paramHashMap, paramb);
      String str = F.a(paramHashMap);
      a.a("Click report params:" + str);
      a.a("Click report url:" + paramString);
      a(paramString, str, "click_report");
      return;
    }
    a.e("Click report URL is null or empty.");
  }

  protected void a(String paramString, f paramf, HashMap<String, String> paramHashMap)
  {
    a.a("Prepare to report:impression_report");
    if (!F.e(paramString))
    {
      if (paramHashMap == null)
        paramHashMap = new HashMap();
      a(paramHashMap, paramf);
      paramHashMap.put("frame", paramf.d);
      paramHashMap.put("sw", String.valueOf(paramf.e));
      paramHashMap.put("sh", String.valueOf(paramf.f));
      paramHashMap.put("so", q.s(this.b));
      paramHashMap.put("phase", paramf.h);
      if (paramf.i != 0L)
        paramHashMap.put("total", String.valueOf(paramf.i));
      String str = F.a(paramHashMap);
      a.a("Impression report params:" + str);
      a.a("Impression report urls:" + paramString);
      a(paramString, str, "impression_report-" + paramf.h);
      return;
    }
    a.e("Impression report URL is null or empty.");
  }

  protected void a(String paramString1, h paramh, String paramString2, c paramc, HashMap<String, String> paramHashMap)
  {
    a.a("Prepare to report:" + paramString2);
    if (!F.e(paramString1))
    {
      if (paramHashMap == null)
        paramHashMap = new HashMap();
      a(paramHashMap, paramc);
      a(paramHashMap);
      if (paramh != null)
        paramHashMap.put("rt", String.valueOf(paramh.ordinal()));
      if (paramString2 != null)
        paramHashMap.put("type", paramString2);
      if (paramc != null)
      {
        if (paramc.d != null)
          paramHashMap.put("pkg", paramc.d);
        if (paramc.e != -1)
          paramHashMap.put("vc", String.valueOf(paramc.e));
        if (paramc.f != null)
          paramHashMap.put("vn", paramc.f);
        if (paramc.g != null)
          paramHashMap.put("failsafe", paramc.g);
        if (paramc.h != null)
          paramHashMap.put("data", paramc.h);
      }
      String str = F.a(paramHashMap);
      a.a("Event report [" + paramString2 + "] params:" + str);
      a.a("Event report urls: " + paramString1);
      a(paramString1, str, paramString2);
      return;
    }
    a.e("Event report URL is null or empty.");
  }

  class a
  {
    String a;
    String b = "s";

    a()
    {
    }
  }

  class b extends z.a
  {
    b()
    {
      super(z.this);
    }
  }

  class c extends z.a
  {
    String d;
    int e = -1;
    String f;
    String g;
    String h;

    c()
    {
      super(z.this);
    }
  }

  protected class d
  {
    protected static final String A = "sp_res_incomplete";
    protected static final String a = "load_success";
    protected static final String b = "load_failed";
    protected static final String c = "load_cancel";
    protected static final String d = "lp_url";
    protected static final String e = "close_lp";
    protected static final String f = "confirm_download";
    protected static final String g = "download_start";
    protected static final String h = "download_finish";
    protected static final String i = "download_cancel";
    protected static final String j = "download_failed";
    protected static final String k = "download_repeat";
    protected static final String l = "download_md5_failed";
    protected static final String m = "install_success";
    protected static final String n = "run";
    protected static final String o = "dd_report_error_01";
    protected static final String p = "la_success";
    protected static final String q = "la_failed";
    protected static final String r = "la_failsafe_success";
    protected static final String s = "la_failsafe_failed";
    protected static final String t = "up_notice";
    protected static final String u = "up_alert";
    protected static final String v = "up_ok";
    protected static final String w = "up_cancel";
    protected static final String x = "up_skip";
    protected static final String y = "sp_no_creative";
    protected static final String z = "sp_expire";

    protected d()
    {
    }
  }

  protected class e
  {
    protected static final String a = "s";
    protected static final String b = "m";
    protected static final String c = "f";

    protected e()
    {
    }
  }

  class f extends z.a
  {
    String d;
    int e;
    int f;
    String g;
    String h = "s";
    long i;

    f()
    {
      super(z.this);
    }
  }

  protected class g
  {
    protected static final String a = "s";
    protected static final String b = "ac";

    protected g()
    {
    }
  }

  protected static enum h
  {
    static
    {
      h[] arrayOfh = new h[9];
      arrayOfh[0] = a;
      arrayOfh[1] = b;
      arrayOfh[2] = c;
      arrayOfh[3] = d;
      arrayOfh[4] = e;
      arrayOfh[5] = f;
      arrayOfh[6] = g;
      arrayOfh[7] = h;
      arrayOfh[8] = i;
      j = arrayOfh;
    }
  }
}

/* Location:           C:\Users\god\Desktop\liunianjishiben_V1.1_mumayi_3745b_dex2jar.jar
 * Qualified Name:     cn.domob.android.ads.z
 * JD-Core Version:    0.5.4
 */